package net.zjitc.dao;

import net.zjitc.domain.Product;
import utils.PageBean;

import java.util.List;

/**
 * Created by guo on 2017/11/22.
 */
public interface ProductDao {


    PageBean<Product> findPageBean(int page, int pageSize);

    int insert(Product product);

    int delete(int pid);

    Product findProductById(int pid);

    int update(Product product);

    List<Product> findAllHotProduct();

    List<Product> findAllNewProduct();

    PageBean<Product> findPageBeanByCid(int page, int pageSize, int cid);

    PageBean<Product> findPageByCsid(int page, int pageSize, int csid);
}
